package cn.zjgsu.service.impl;

/*import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSON;

import cn.zjgsu.domain.Leave;
import cn.zjgsu.mapping.LeaveMapper;
import cn.zjgsu.service.LeaveService;

@Service
public class LeaveServiceImpl implements LeaveService{

	@Resource
	private LeaveMapper leaveMapper;
	
	@Override
	public String selectLeave(int id) {
		
		return JSON.toJSONString(leaveMapper.selectLeave(id));
	}

	@Override
	public void insertLeave(Leave leave) {
		leaveMapper.insertLeave(leave);
		
	}

	@Override
	public List<Leave> selectNeedLeave() {
		
		return leaveMapper.selectNeedLeave();
	}

	@Override
	public void monleave(int id) {
		
		leaveMapper.monleave(id);
		
	}

	@Override
	public void inleave(int id) {
		leaveMapper.inleave(id);
		
	}

	@Override
	public List<Leave> selectCanLeave() {
		
		return leaveMapper.selectCanLeave();
	}

	@Override
	public void unmonleave(int id) {
		leaveMapper.unmonleave(id);
		
	}

	@Override
	public void uninleave(int id) {
		leaveMapper.uninleave(id);
		
	}

}*/
